package com.zhongli.devplatform.po.im;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author WuXiCheng
 * @version 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tencent_im_c2c_msg")
public class TencentC2CMessagePO {

    @TableId(type = IdType.AUTO)
    private Long id;            // id

    @TableField(value = "from_account")
    private String fromAccount; //发送者

    @TableField(value = "to_account")
    private String toAccount;   //接收者

    @TableField(value = "msg_seq")
    private Integer msgSeq;        // 消息序列号

    @TableField(value = "msg_time")
    private Integer msgTime;       //时间戳 秒

    @TableField(value = "msg_key")
    private String msgKey;      // 消息唯一标识

    @TableField(value = "msg_body")
    private String msgBody;     // 消息内容  JSONArray
}

